<template>
  <div @click="handleclick(data.id)">
    <img :src="data.cover" alt=""/>
       <p>{{data.name |farmat()}}</p>
  </div>
</template>

<script>
export default {
    name:"Mvitem",
    props:{
        data:{
            type:Object,
            required:true
        }
    },
     methods:{
        handleclick(id){
                this.$router.push(`/mvdetail?id=${id}`)
                console.log(id)
        }
     }
}
</script>

<style lang="less" scoped>
img{
    width:120px;
    height: 120px;
}
p{
    font-size: 12px;
}

</style>